package com.googlecode.stockhamster.arbiter;

public interface IArbiter {
	// User operation
	public String login(String username, String password);
	
	public Boolean open(String username, String password);
	
	public Boolean close(String loginCode);

	// Bank operation
	public Long getBalance(String loginCode);
	
	public String cash(String loginCode, Long amount);

	// Stock operation
	public Boolean requestBuy(String loginCode, Integer stockId, Long price,
			Integer amount);

	public Boolean requestSell(String loginCode, Integer stockId, Long price,
			Integer amount);

	public Boolean cleanRequestList(String loginCode);

	public Integer[] getStockList(String loginCode);

	public Integer getStockAmount(String loginCode, Integer stockId);
}
